package btp.Calendars.Tests;

import btp.Calendars.GregorianCalendar;
import btp.Calendars.JulianCalendar;
import btp.Calendars.RataDie;

public class JulianCalendarTest {
	public static void main(String[] args){
		
		/*The only difference between the Julian and Gregorian calendars is the rule for 
		leap years. Pope Gregory XIII instituted this change in 1582, when there was 
		already a discrepancy of 10 days in the date of the equinox. He Proclaimed that 
		Thursday, October 4, 1582 CE (Julian) would be followed by Friday, October 15, 1582
		CE (Gregorian).
		*/
		
		JulianCalendar jc = new JulianCalendar(1582, JulianCalendar.OCTOBER, 4);
		GregorianCalendar gc = new GregorianCalendar(1582, GregorianCalendar.OCTOBER, 15);
		
		System.out.println(RataDie.getStringForDay(RataDie.dayOfWeek(jc.getRDFromJulian())));
		System.out.println(RataDie.getStringForDay(RataDie.dayOfWeek(gc.getRDFromGregorian())));
		System.out.println(gc.getRDFromGregorian()-jc.getRDFromJulian());
	}
}
